package com.blb.zycommunity.mapper;

import com.blb.zycommunity.entity.ZyComment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * <p>
 * 评论表 Mapper 接口
 * </p>
 *
 * @author chenheng
 * @since 2023-11-20
 */
public interface ZyCommentMapper extends BaseMapper<ZyComment> {


    List<ZyComment> selectComments(String interactionId);

    @Update("update zy_comment set del_flag = '2' where comment_id = #{commentId}")
    void deleteCommentById(String commentId);

}
